import DirectionSubStateMachine from '../../../Base/DirectionSubStateMachine'
import State from '../../../Base/State'
import { StateMachine } from '../../../Base/StateMachine'
import { DIRECTION_ENUM } from '../../../Enums'

const BASE_PATH = 'texture/player/blockleft'

export default class BlockLeftSubStateMachine extends DirectionSubStateMachine {
  constructor(fsm: StateMachine) {
    super(fsm)
    this.stateMachines.set(DIRECTION_ENUM.UP, new State(fsm, `${BASE_PATH}/top`))
    this.stateMachines.set(DIRECTION_ENUM.DOWN, new State(fsm, `${BASE_PATH}/bottom`))
    this.stateMachines.set(DIRECTION_ENUM.LEFT, new State(fsm, `${BASE_PATH}/left`))
    this.stateMachines.set(DIRECTION_ENUM.RIGHT, new State(fsm, `${BASE_PATH}/right`))
  }
}
